package com.slfx.idgen.demo.idgen.utils;

import java.io.Serializable;

public class JsonResponse<T> implements Serializable {

    private static final long serialVersionUID = -6609499448346439617L;
    private String code;
    private String msg;
    private String errMsg;
    private String timestamp;
    public T data;


    public JsonResponse() {
    }

    public JsonResponse(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


}